﻿<div ng-controller="fBankBillOrderController">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">富民订单管理</h4>
                </div>
                <div class="panel-body">
                    <!--<div class="form-inline filter-option">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="pull-right">
                                    <select class="form-control" ng-model="filter.bill_status">
                                        <option value="">请选择票据类型</option>
                                        <option value="">全部</option>
                                        <option value="1">待审核</option>
                                        <option value="10">已审核</option>
                                        <option value="5">审核失败</option>
                                    </select>
                                    <button class="btn btn-sm btn-info" ng-click="reflash()"><i class="fa fa-search"></i> 筛选</button>
                                </div>
                            </div>
                        </div>
                    </div>-->
                    <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html" class="table table-striped table-bordered table-hover table-condensed">
                        <tr ng-repeat="item in $data">
                            <td data-title="'序号'" width="10%" class="text-center">{{ first + $index }}</td>
                            <td data-title="'票据号'" sortable="'billNumber'" class="text-center">{{ item.billNumber }}</td>
                            <td data-title="'票面金额'" sortable="'billPrice'" class="text-center">{{ item.billPrice | currency }}</td>
                            <td data-title="'承兑人'" sortable="'acceptor'" class="text-center">{{ item.acceptor | limitTo:6 }}{{ item.acceptor.length > 6 ? '...' : '' }}</td>
                            <td data-title="'汇票到期日'" sortable="'dueDate'" class="text-center">{{ item.dueDate | date: 'yyyy-MM-dd' }}</td>
                            <td data-title="'状态'" sortable="'status'" class="text-center">{{ item.statusName }}</td>
                            <!--<td data-title="'审核人'" class="text-center">{{ item.check_people }}</td>
                            <td data-title="'审核时间'"sortable="'publishing_time'" class="text-center">{{ item.checked_time | date: 'yyyy-MM-dd HH:mm' }}</td>-->
                            <td class="text-center width-100 text-nowrap">
                                <button class="btn btn-success btn-xs" ng-click="resd(item)"><i class="fa fa-edit"></i> 详细</button>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="modal fade" id="modal-read">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="resdForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>订单详情</h4>
                                </div>
                                
                                <div class="modal-body">
                                    <div class="form-horizontal">
                                        <div class="bill-detail" style="height:235px;">
                                            <p class="bill-detail-title">票据信息</p>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">票据号：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.billNumber}}
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">票面金额：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.billPrice}}
                                                </div>
                                                <span class="control-label">元</span>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">承兑行名称：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.acceptor}}
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">汇票到期日：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.dueDate | date:'yyyy-MM-dd'}}
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">汇票瑕疵：</label>
                                                <div class="col-md-10 form-control-static">
                                                    {{model.billFlawName | myfilter}}
                                                </div>
                                            </div>
                                        </div>
                                        <div class="bill-detail" style="height:235px;">
                                            <p class="bill-detail-title">订单信息</p>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">订单号：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.orderNumber}}
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">银行报价利率：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.billRate}}
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">每十万扣：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.everyOneHunderdThousandPlus}}元
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">成交金额：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{(model.transactionAmount)/10000 | formatMoneyWith6digts2}}万元
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <label class="control-label col-md-2">订单状态：</label>
                                                <div class="col-md-4 form-control-static">
                                                    {{model.statusName}}
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group width-full">
                                            <div class="col-sm-4">
                                                <span>汇票正面</span>
                                                <div class="tb-booth tb-pic tb-s250">
                                                    <a href="{{model.billFrontPhoto}}" target="_blank">
                                                        <img class="jqzoom" height="100%" width="100%" src="{{model.billFrontPhoto}}" rel="{{model.billFrontPhoto}}" alt="汇票正面未上传" />
                                                    </a>

                                                    <div ng-if="model.billFrontPhoto==''">
                                                        汇票正面未上传
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-4">
                                                <span>汇票背书面1</span>
                                                <div class="tb-booth tb-pic tb-s250">
                                                    <a href="{{model.billBackPhoto1}}" target="_blank" ng-if="model.billBackPhoto1!=''">
                                                        <img height="100%" width="100%" class="jqzoom" src="{{model.billBackPhoto1 }}" rel="{{model.billBackPhoto1}}" alt="汇票正面未上传" />
                                                    </a>
                                                    <div ng-if="model.billBackPhoto1==''">
                                                        汇票背面未上传
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-4">
                                                <span>汇票背书面2</span>
                                                <div class="tb-booth tb-pic tb-s250">
                                                    <a href="{{model.billBackPhoto2}}" target="_blank" ng-if="model.billBackPhoto2!=''">
                                                        <img class="jqzoom" height="100%" width="100%" src="{{model.billBackPhoto2 }}" rel="{{model.billBackPhoto2}}" alt="汇票正面未上传" />
                                                    </a>
                                                    <div ng-if="model.billBackPhoto2==''">
                                                        汇票背面未上传
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

